package com.dgut.app.security;

import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Component;

/**
 * @Author zyq
 * @Date 2022/4/25 10:54
 * @Description 自定义加密方式，不使用加密
 * @Version 1.0
 **/
@Component
public class NoPasswordEncoder implements PasswordEncoder {
    @Override
    public String encode(CharSequence charSequence) {
        return "";
    }

    @Override
    public boolean matches(CharSequence charSequence, String s) {
        return true;
    }
}
